﻿using System;
using Autodesk.Revit.DB;

namespace FetchDataCompare
{
	internal class GeoTextNoteStruct : GeoObjectStructBase, IGeoObjectStruct
	{
		public GeoTextNoteStruct(Element element, Autodesk.Revit.DB.View view) : base(element, view)
		{
			base.Attribute = this.GetElementAttribute();
		}

		public GeoTextNoteStruct()
		{
		}

		public override string GetElementAttribute()
		{
			string elementAttribute = base.GetElementAttribute();
			this.GetExtendAttribute(ref elementAttribute);
			return elementAttribute;
		}

		public void GetExtendAttribute(ref string attr)
		{
			TextNote textNote = base.UseElement as TextNote;
			if (textNote == null)
			{
				attr = (attr ?? "");
				return;
			}
			attr = attr + textNote.Text + ";";
		}
	}
}
